package converter;

import entity.Address;
import org.springframework.core.convert.converter.Converter;

public class AddressToStringConverter implements Converter<Address,String> {
    @Override
    public String convert(Address source) {
        return source.getProvince()+"-"+source.getCity();
    }
}
